package com.tender.enums;

import java.util.Arrays;

public enum ServiceTypeEnums {

    WS("web socket服务类型"),
    COMMON("除 WS之外的服务类型"),

    ;

    private String des;

    ServiceTypeEnums(String des) {
        this.des = des;
    }

    public static ServiceTypeEnums getServiceType(String serviceType) {
        return Arrays.stream(ServiceTypeEnums.values()).filter(item ->
                item.name().equalsIgnoreCase(serviceType)).findFirst().orElse(null);
    }

}
